<?php 
return array(
	'columns' => array(
		'reg_status' => array(
			'label' => '允许新用户注册',
			'prompt' => '',
			'name' => 'reg_status',
			'type' => 'radio',
			'options' => array(
				array(
					'value' => '0',
					'label' => '关闭注册',
					'checked' => false,
				),
				array(
					'value' => '1',
					'label' => '只开放普通注册',
					'checked' => true
				),
				array(
					'value' => '2',
					'label' => '只开放邀请注册',
					'checked' => false
				),
				array(
					'value' => '3',
					'label' => '注册需要Email验证',
					'checked' => false
				),
			)
		),
		'reg_close_reason' => array(
			'label' => '关闭注册原因',
			'prompt' => '',
			'name' => 'reg_close_reason',
			'type' => 'textarea',
			'attributes' => array(
				'width' => '400px',
				'height' => '50px',
				'cols' => '50',
				'rows' => '3',
			)
		),
		'rules_is_show' => array(
			'label' => '显示网站服务条款',
			'prompt' => '',
			'name' => 'rules_is_show',
			'type' => 'radio',
			'options' => array(
				array(
					'value' => 'n',
					'label' => '否',
					'checked' => true,
				),
				array(
					'value' => 'y',
					'label' => '是',
					'checked' => false
				),
			)
		),
		'censor_user' => array(
			'label' => '用户信息保留关键字',
			'prompt' => '',
			'name' => 'censor_user',
			'type' => 'textarea',
			'attributes' => array(
				'width' => '400px',
				'height' => '50px',
				'cols' => '50',
				'rows' => '3',
			)
		),
		'reg_mail_subject' => array(
			'label' => '邮件提示主题',
			'prompt' => '',
			'name' => 'reg_mail_subject',
			'type' => 'textarea',
			'attributes' => array(
				'width' => '400px',
				'height' => '50px',
				'cols' => '50',
				'rows' => '3',
			)
		),
		'reg_mail_timeout' => array(
			'label' => 'Email验证限时(单位:小时)',
			'prompt' => '',
			'name' => 'reg_mail_timeout',
			'type' => 'text',
		),
		'reg_invite_timeout' => array(
			'label' => '邀请验证限时(单位:小时)',
			'prompt' => '',
			'name' => 'reg_invite_timeout',
			'type' => 'text',
		),
		'__buttons__' => array(
			'__multi__' => true,
			array(
				'type' => 'hidden',
				'name' => 'do',
				'value' => 'post',
			),
			array(
				'type' => 'submit',
				'value' => '保存',
				'attributes' => array(
					'class' => 'button blue'
				)
			),
			array(
				'type' => 'reset',
				'value' => '重置',
				'attributes' => array(
					'class' => 'button'
				)
			)
		)
	),
	'form' => $this->util->getForm('Options', 'system'),
	'data' => $this->data,
	'errors' => $this->errors
);
